<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page session="true" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap.css">
    <link rel="stylesheet" href="<c:url value="/resources/css/systemStyle.css"/>">
    <title>校园社团管理系统</title>
</head>
<body>
<!-- 顶部导航栏 -->
<jsp:include page="./header.jsp" />
<div class="content container">
    <div class="fs-4 fw-bolder">社团信息</div>
    <div class="text-center">
        <c:if test="${!empty sessionScope.deleted}">
            <c:choose>
                <c:when test="${sessionScope.deleted}">
                    <span class="text-success">修改成功!</span>
                    <c:remove var="deleted" scope="session"/>
                </c:when>
                <c:otherwise>
                    <span class="text-danger">修改失败</span>
                    <c:remove var="deleted" scope="session"/>
                </c:otherwise>
            </c:choose>
        </c:if>
    </div>
    <div class="d-flex justify-content-center mt-4">
        <form action="<c:url value='../systemAdministrator/clubInfo' />" method="post" class="col-6">
            <div class="input-group mb-3">
                <span class="input-group-text" id="basic-addon1">社团名：</span>
                <input type="hidden" name="clubName" value="${clubinfo.clubName}" />
                <input type="text" class="form-control" value="${clubinfo.clubName}" aria-label="clubName" aria-describedby="basic-addon1" disabled>
            </div>
            <div class="input-group mb-3">
                <span class="input-group-text" id="basic-addon2">学院：</span>
                <input type="text" class="form-control" value="${clubinfo.college}" name="college" aria-label="college" aria-describedby="basic-addon2">
            </div>
            <div class="input-group mb-3">
                <span class="input-group-text" id="basic-addon3">社团介绍：</span>
                <input type="text" class="form-control form-control-lg" value="${clubinfo.description}" name="description" aria-label="description" aria-describedby="basic-addon3">
            </div>
            <div class="input-group mb-3">
                <span class="input-group-text" id="basic-addon4">建立时间：</span>
                <input type="text" class="form-control" value="<fmt:formatDate value="${clubinfo.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />" name="createTime" aria-label="createTime" aria-describedby="basic-addon4" disabled>
            </div>
            <button type="submit" class="btn btn-outline-success mx-2">提交修改</button>
            <button type="reset" class="btn btn-outline-secondary">重置</button>
        </form>
    </div>
    <div style="height: 15rem"></div>
</div>
<!-- footer -->
<jsp:include page="./footer.jsp" />
<script src="<c:url value="/resources/js/bootstrap.bundle.js" />"></script>
</body>
</html>